package tech.aistar.mapper;

import org.apache.ibatis.annotations.Param;
import tech.aistar.model.dto.CompanySearchDTO;
import tech.aistar.model.entity.Company;
import tech.aistar.model.entity.Job;

import java.util.List;

public interface CompanyMapper {
    /**
     * 更具id查询company
     * @param id
     * @return
     */
    Company getById(Integer id);

    /**
     *
     * @return
     */
    List<Company> getAll();

    /**
     * 根据城市查找
     * @param city
     * @return
     */
    List<Company> getByCity(String city);


    /**
     * 根据行业查找
     * @param kind
     * @return
     */
    List<Company> getByKind(String kind);


    /**
     * 根据融资阶段查找公司
     * @param
     * @return
     */
    List<Company> getByCollectMoneyState(Integer collectMoneyState);


    /**
     * 根据人数查找公司
     * @param peopleCountsState
     * @return
     */
    List<Company> getByPeopleCounts(Integer peopleCountsState);



    List<Company> getComoanyByAll(CompanySearchDTO companySearchDTO);

}
